export class ApiPath {
  //login
  static readonly login = '/v1/api/login';
  // 通过RefreshToken获取token
  static readonly getTokenByRefreshToken = '/v1/api/refreshToken';
  // 获取栏目
  static readonly getMenu = '/v1/admin/getMenu';
  // 获取栏目列表
  static readonly getMenuList = '/v1/admin/getMenuList';
  // 添加栏目
  static readonly addMenu = '/v1/admin/addMenu';
  // 删除栏目
  static readonly deleteMenu = '/v1/admin/deleteMenu/id/';
  // 更新栏目
  static readonly updateMenu = '/v1/admin/updateMenu';
  static readonly updateMenuStatus = '/v1/admin/updateMenuStatusById';
  // 前台获取分类
  static readonly getAllCategoryByBlog = '/v1/blog/getAllCategory';
  // 后台获取分类
  static readonly getAllCategoryByAdmin = '/v1/admin/getAllCategoryPage';
  static readonly getAllCategory = '/v1/admin/getAllCategory';
  // 后台获取分类
  static readonly addCategoryByAdmin = '/v1/admin/addCategory';
  static readonly updateCategory = '/v1/admin/updateCategory';
  static readonly deleteCategory = '/v1/admin/deleteCategory/id/';

  // Tag相关
  static readonly addTag = '/v1/admin/addTag';
  static readonly deleteTag = '/v1/admin/deleteTag';
  static readonly updateTag = '/v1/admin/updateTag';
  static readonly getAllTagByPage = '/v1/admin/getAllTag';
  static readonly getTags = '/v1/admin/getTags';

  // 上传相关
  static readonly getQiNiuToken = '/v1/api/getQiNiuToken';

  // 文章相关
  static readonly addArticle = '/v1/admin/addArticle';
  static readonly articleListByAdmin = '/v1/admin/getAllArticle';
  static readonly deleteArticleByAdmin = '/v1/admin/deleteArticle/id/';
  static readonly getArticleByAdmin = '/v1/admin/getArticle/id/';
  static readonly updateArticleByAdmin = '/v1/admin/updateArticle';
  static readonly updateArticleStatus = '/v1/admin/updateArticleStatus'; // 更新文章状态

  // 设置
  static readonly getBlogSetting = '/v1/admin/getBlogSetting'; // 获取设置
  static readonly saveBlogSetting = '/v1/admin/saveBlogSetting'; // 更新设置
  static readonly UpdateBloggerInfo = '/v1/admin/updateBloggerInfo'; // 更新博主信息
  static readonly getBloggerInfo = '/v1/admin/getBloggerInfo'; // 获取博主信息

  // 友情链接
  static readonly addShareUrl = '/v1/admin/addShareUrl'; // 添加链接
  static readonly updateShareUrl = '/v1/admin/updateShareUrl'; // 更新链接
  static readonly updateShareUrlStatus = '/v1/admin/updateShareUrlStatus'; // 更新链接状态
  static readonly getShareUrlList = '/v1/admin/getShareUrlList'; // 获取链接
  static readonly getShareUrlById = '/v1/admin/getShareUrlById'; // 获取链接
  static readonly deleteShareUrl = '/v1/admin/deleteShareUrl'; // 删除链接

  // 广告相关
  static readonly addAd = '/v1/admin/addAd'; // 添加广告
  static readonly updateAd = '/v1/admin/updateAd'; // 更新广告
  static readonly updateAdStatus = '/v1/admin/updateAdStatusBydId'; // 更新广告状态
  static readonly getAdList = '/v1/admin/getAdList'; // 获取广告
  static readonly getAdById = '/v1/admin/getAdById'; // 获取广告
  static readonly deleteAd = '/v1/admin/deleteAdById'; // 删除广告

  // 留言相关
  static readonly getMessageList = '/v1/admin/messageList'; // 留言列表
  static readonly getBlogMessageList = '/v1/admin/blogMessageList'; // 留言列表
  static readonly updateMessageStatus = '/v1/admin/updateMessageStatus'; // 审核留言
  static readonly answerMessage = '/v1/admin/answerMessage'; // 回复留言
  static readonly deleteMessage = '/v1/admin/deleteMessage'; // 删除留言

  // 统计相关
  static readonly getStatisticsList = '/v1/admin/getStatisticsList'; // 获取每天点击统计
  static readonly getArticleStatisticsDetail =
    '/v1/admin/articleStatisticsDetails'; // 获取每天文章点击统计
  static readonly getAdStatisticsDetail = '/v1/admin/adStatisticsDetails'; // 获取每天广告点击统计
  static readonly todayArticleStatisticsDetails =
    '/v1/admin/todayArticleStatisticsDetails'; // 获取每天广告点击统计
  static readonly todayAdStatisticsDetails =
    '/v1/admin/todayAdStatisticsDetails'; // 获取每天广告点击统计
}

export class BlogApiPath {
  // 文章相关
  static readonly blogGetArticleList = '/v1/blog/getArticleList'; // 获取文章列表
  static readonly blogGetArticle = '/v1/blog/getArticle/id/'; // 获取文章详情
  static readonly blogGetSetting = '/v1/blog/getBlogSetting'; // 获取相关设置
  static readonly blogTagList = '/v1/blog/getTagList'; // 获取TagList
  static readonly blogGetArticleListByTagId = '/v1/blog/getArticleListByTagId'; // 通过tag获取对应的文章列表
  static readonly blogGetShareUrl = '/v1/blog/getShareUrl'; // 获取友情链接
  static readonly blogRecommendedArticle = '/v1/blog/recommendedArticle'; // 获取推荐阅读
  static readonly blogGetAdList = '/v1/blog/getAdList'; // 获取广告
  static readonly blogSentMessage = '/v1/blog/sentMessage'; // 留言
  static readonly blogGetMessageListById = '/v1/blog/getMessageList'; // 获取文章留言留言
  static readonly blogGetBlogMessageListById = '/v1/blog/getBlogMessageList'; // 获取博客留言留言
  static readonly blogAdOnClick = '/v1/blog/adOnClick'; // 点击广告
  static readonly blogGetBloggerInfo = '/v1/blog/getBloggerInfo'; // 获取博主信息
}
